package com.xusheng.cli.thiredparty.entity;

import lombok.Data;

/**
 * @author : 李一涵
 * @date : Created in 2022-2-25 13:27
 * @description :
 */
@Data
public class AuthResult {

	private String code;

	private String message;

	private ResultData data;

	private String seqNo;

	@Data
	public static class ResultData {

		private String state;

		private String result;

	}

	public enum State {

		/**
		 * 身份一致
		 */
		SAME("1"),
		/**
		 * 身份不一致
		 */
		NO_SAME("2"),
		/**
		 * 结果异常
		 */
		FAULT("3");

		final String code;

		State(String code) {
			this.code = code;
		}

		public String code() {
			return code;
		}
	}

}
